/** @name 平台枚举 */
export enum PlatformEnum { 
  /** @name 微信小程序 */
  WeChatSmall = 1,

  /** @name 支付宝小程序 */
  AliPaySmall = 2,

  /** @name 浏览器 */
  H5 = 3,

  /** @name 微信公众号 */
  WeChatPub = 4,

  /** @name 淘宝小程序 */
  TaobaoSmall = 5,

  /** @name 抖音头条小程序 */
  ToutiaoSmall = 6,
}

/** @name 项目枚举(还未用上) */
export enum ProjectTypeEnum {
  /** @name 联联周边游 */
  LianJoyInside = 1,
}

/** @name 券类型枚举 */
export enum CouponTypeEnum {
  Exchange = 1,
  Coupon = 2,
  Combination = 3,
}
export const CouponTypeMap = new Map([
  [CouponTypeEnum.Exchange, '兑换券'],
  [CouponTypeEnum.Coupon, '优惠券'],
  [CouponTypeEnum.Combination, '组合权益']
])

/** @name 券场景可用枚举 */
export enum CouponBatchStatusEnum {
  disable = 0,
  enable = 1,
}
export const CouponBatchStatusMap = new Map<CouponBatchStatusEnum, string>([
  [CouponBatchStatusEnum.disable, '不可用'],
  [CouponBatchStatusEnum.enable, '可使用'],
])
export enum CouponStatusEnum {
  Usable = 1,
  Used = 2,
  Expired = 3,
  Canceled = 4,
  Using = 5,
}
export const CouponStatusMap = new Map<CouponStatusEnum, string>([
  [CouponStatusEnum.Usable, '可使用'],
  [CouponStatusEnum.Used, '已核销'],
  [CouponStatusEnum.Expired, '已过期'],
  [CouponStatusEnum.Canceled, '已作废'],
  [CouponStatusEnum.Using, '核销中'],
])
export enum TakeOutOrderStatusEnum { 
  Delivering = 1,
  Delivered = 2
}
export const TakeOutOrderStatusMap = new Map([
  [TakeOutOrderStatusEnum.Delivering, '配送中'],
  [TakeOutOrderStatusEnum.Delivered, '配送完成']
])

export enum OrderStatusEnum { 
  /** @name 待付款*/
  WaitPay = 1,
  /** @name 已支付*/
  Paid = 2,
  /** @name 发货处理中*/
  Shipping = 3,
  /** @name 充值成功*/
  RechargeSuccess = 4,
  /** @name 充值失败*/
  RechargeFail = 5,
  /** @name 退款处理中*/
  Refunding = 6,
  /** @name 订单关闭*/
  Closed = 7,
}
export const OrderStatusMap = new Map([
  [OrderStatusEnum.WaitPay, '待付款'],
  [OrderStatusEnum.Paid, '已支付'],
  [OrderStatusEnum.Shipping, '发货处理中'],
  [OrderStatusEnum.RechargeSuccess, '充值成功'],
  [OrderStatusEnum.RechargeFail, '充值失败'],
  [OrderStatusEnum.Refunding, '退款处理中'],
  [OrderStatusEnum.Closed, '订单关闭'],
])

export enum StoreScopeTypeEnum { 
  Prescript = 1,
  Customize = 2,
  AllInBrand = 3,
}
export const StoreScopeTypeMap = new Map([
  [StoreScopeTypeEnum.Prescript, '指定门店'],
  [StoreScopeTypeEnum.Customize, '自定义'],
  [StoreScopeTypeEnum.AllInBrand, '品牌所有门店']
])

export enum BrandTypeEnum { 
  Dinner = 0,
  Movie = 1,
}
export const BrandTypeMap = new Map([
  [BrandTypeEnum.Dinner, '点餐'],
  [BrandTypeEnum.Movie, '电影票'],
])

export enum PageUrlEnum {
  /** @name 首页*/
  HomePage,

  /** @name 卡券兑换页*/
  Exchange,

  /** @name 电影列表页*/
  MovieList,
  /** @name 电影订单详情页*/
  MovieOrderDetail,
  /** @name 电影选城市页*/
  MovieChooseCity,
  /** @name 影院列表页*/
  CinemaList,
  /** @name 场次列表页*/
  TheaterList,
  TheaterDetail,
  /** @name 场次选座页*/
  TheaterSeatSelect,
  /** @name 电影确认订单页*/
  MovieOrderConfirm,

  /** @name 点餐选品页*/
  DinnerSelect,
  /** @name 点餐订单详情页*/
  DinnerOrderDetail,
}

/** @name 购票类型 */
export enum TicketModeEnum { 
  /** @name 快票 */
  FastTicket = 0,

  /** @name 慢票 */
  SlowTicket = 1,
}
export const TicketModeMap = new Map<TicketModeEnum, string>([
  [TicketModeEnum.FastTicket, '快速购票'],
  [TicketModeEnum.SlowTicket, '特惠购票'],
])

export enum LoveStatusEnum {
  UnLovers = 0,
  LoversL = 1,
  LoversR = 2,
}

/**
 * @description 1:兑换 2:查单 3:需要登录才能使用 4:需要绑定才能使用
 */
export const exchangeTypeEnum = new Map<1 | 2 | 3 | 4, string>([
  [1, '兑换'],
  [2, '查单'],
  [3, '需要登录才能使用'],
  [4, '需要绑定才能使用'],
])

export const takeType = new Map([
  [1, '到店取餐'],
  [2, '打包带走'],
  [3, '外卖配送']
])

export const loveStatus = new Map([
  [0, '非情侣座'],
  [1, '情侣座左'],
  [2, '情侣座右']
])

export const discountTypeMap = new Map([
  [1, '平台优惠'],
  [2, '会员优惠'],
  [3, '券码优惠'],
  [4, '综合优惠'],
  [5, '满减优惠'],
  [6, '兑换券'],
  [7, '单品优惠券'],
  [8, '权益优惠']
])

export const PageUrlMap = new Map([
  [PageUrlEnum.HomePage, '/pages/index/index'],
  [PageUrlEnum.Exchange, '/pages/exchange/index'],
  [PageUrlEnum.MovieList, '/pages/movie/list/index'],
  [PageUrlEnum.MovieOrderDetail, '/pages/order/detail/index'],
  [PageUrlEnum.MovieChooseCity, '/pages/city/index'],
  [PageUrlEnum.CinemaList, '/pages/cinema/index'],
  [PageUrlEnum.TheaterList, '/pages/movie/theaterList/index'],
  [PageUrlEnum.TheaterDetail, '/pages/movie/theaterDetail/index'],
  [PageUrlEnum.TheaterSeatSelect, '/pages/movie/seatSelect/index'],
  [PageUrlEnum.MovieOrderConfirm, '/pages/order/confirm/index'],
  // [PageUrlEnum.DinnerSelect, '/pages/product/index'],
  // [PageUrlEnum.DinnerOrderDetail, '/pages/order/detail/index'],
])